<!-- Row start -->
<div class="row">
    <div class="col-md-6 col-sm-12 col-sx-12">
        <div class="panel panel-default">
            <div class="panel-heading clearfix">
                <i class="icon-list"></i>
                <h3 class="panel-title">Last Articles</h3>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table -bordered no-margin">
                        <thead>
                            <tr>
                                <th>
                                    No
                                </th>
                                <th>
                                    Title Articles
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 1; ?>
                            <?php if(isset($last_articles) && count($last_articles) > 0): foreach ($last_articles as $articles): ?>
                            <tr>
                                <td><?php echo $i; ?></td>
                                <td><?php echo $articles->a_title; ?></td>
                            </tr>
                            <?php $i++ ?>
                            <?php endforeach; endif;?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-sm-12 col-sx-12">
        <div class="panel panel-default">
            <div class="panel-heading clearfix">
                <i class="icon-list"></i>
                <h3 class="panel-title">Last Products</h3>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table -bordered no-margin">
                        <thead>
                            <tr>
                                <th>
                                    No
                                </th>
                                <th>
                                    Name Products
                                </th>
                                <th>
                                    Categories
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 1; ?>
                            <?php if (isset($last_products) && count($last_products) > 0): foreach($last_products as $products): ?>
                            <tr>
                                <td><?= $i; ?></td>
                                <td><?= $products->p_name; ?></td>
                                <td><?= $products->cp_name; ?></td>
                            </tr>
                            <?php $i++; ?>
                            <?php endforeach; endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Row end -->